const useCarbonStorage = defineStore('carbon', {
    state: () => ({
        carbon: 0,
        operateMaterial: '', // 编辑材料名称
    }),
    actions: {
        // 编辑材料名称
        setOperateMaterial(operateMaterial){
          this.operateMaterial = operateMaterial
        },
        getOperateMaterial(){
          return this.operateMaterial
        },

        setCarbon(carbon) {
            this.carbon = carbon
        },
        getCarbon() {
            return this.carbon
        },
    },
    getters: {},
})

export default useCarbonStorage;